package com.css.fxfzypg.modules.baseData.repository;

import com.css.fxfzypg.modules.baseData.entity.Airport;
import com.css.fxfzypg.modules.baseData.queryParams.AirportQueryParams;
import org.springframework.data.domain.Page;

import java.sql.Timestamp;
import java.util.List;

public interface AirportRepository {
   // Airport updateAirportById(Airport airport);
    void deleteAirportsById(List<Integer> ids, Timestamp timestamp);
    Airport saveAirport(Airport airport);
    Page<Airport> getAllAirportParams(AirportQueryParams queryParams);
    Airport getAirportById(Integer id);
    List<Airport> getAll();
    void importExcel(List<Airport> airports);

 Integer countByCounty(String province, String city, String county);
 Integer countByCity(String province, String city);
 Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
